' Stephen Toub


Imports Microsoft.VisualBasic
Imports System

Namespace C4F.DevKit.PreviewHandler.PreviewHandlerFramework
    <AttributeUsage(AttributeTargets.Class, AllowMultiple:=False, Inherited:=False)> _
    Public NotInheritable Class PreviewHandlerAttribute
        Inherits Attribute
        Private _name, _extension, _appId As String

        Public Sub New(ByVal name As String, ByVal extension As String, ByVal appId As String)
            If name Is Nothing Then
                Throw New ArgumentNullException("name")
            End If
            If extension Is Nothing Then
                Throw New ArgumentNullException("extension")
            End If
            If appId Is Nothing Then
                Throw New ArgumentNullException("appId")
            End If
            _name = name
            _extension = extension
            _appId = appId
        End Sub

        Public ReadOnly Property Name() As String
            Get
                Return _name
            End Get
        End Property
        Public ReadOnly Property Extension() As String
            Get
                Return _extension
            End Get
        End Property
        Public ReadOnly Property AppId() As String
            Get
                Return _appId
            End Get
        End Property
    End Class
End Namespace
